package com.itheima.二维数组;

import java.util.Scanner;

/*
     判断是否为奇数
 */
public class Work07 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入:");
        int num = sc.nextInt();
        System.out.println("是否为奇数:");
        System.out.println(isOdd(num));
    }

    public static boolean isOdd(int num) {
        return num % 2 == 1 ? true : false;
    }
}
